package com.powernode.ssm.service.Impl;

import com.powernode.ssm.bean.Student;
import com.powernode.ssm.dao.StudentDao;
import com.powernode.ssm.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 曾铖坚
 * @Date: 2024/10/11 17:43
 * @Version: 1.0.0
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;

    @Override
    public Student getBySid(Integer id) {
        return studentDao.selectBySid(id);
    }

    @Override
    public int add(Student student) {
        return studentDao.insert(student);
    }


}
